<?php

class Datagrid_Renderizador_Link implements Datagrid_Renderizador {
	public function render(Datagrid_Campo $campo, Modelo $model){
		$metodo = "get_" . $campo->GetNome();
		$link = $model->$metodo();

		$a = "<a href='{$link}' target='_blank'>{$link}</a>";

		return $a;
	}
}